/* 全局暗黑模式 */
body.dark-mode {
    background-color: #1e1e2f;
    color: #f5f5f5;
}
body.dark-mode .card,
body.dark-mode .accordion-body,
body.dark-mode .stat-card {
    background-color: #2c2c3e;
    border: none;
    color: #fff;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #1e1e2f;
}

/* 用户信息 */
.user-container {
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.username {
    margin-top: 15px;
    font-size: 24px;
}

.user-badge .badge {
    background-color: #d7423a;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

/* 数据统计 */
.user-stats {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-card {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 10px;
}

/* 折叠面板 */
.accordion {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
}
.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-body {
    display: block;
    margin-top: 10px;
}
.accordion-body ul {
    list-style: none;
    padding-left: 0;
}
.accordion-body li {
    padding: 5px 0;
}

/* 主题切换 */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #d7423a;
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.slider.round {
    border-radius: 20px;
}
.slider.round:before {
    border-radius: 50%;
}